package com.system.pay.utils;

/**
 * @className: AlipayConfig
 * @description: TODO 类描述
 * @author: Li Chuanwei
 * @date: 2023/12/03 8:55
 * @Company: Copyright [日期] by [作者或个人]
 **/

import lombok.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@Configuration
@Component
public class AlipayConfig {
    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "9021000122699423";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    private String merchant_private_key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCVyXBlF7wDGn5lxyPLf1eqMvcX3ZD5D8Gec4UzrMLIaDKH1awDuNxh581ODCnTAC34vO1k5RTu1E+Ky58Fgfadf5k/ZUvJ2FOH78oUCY/vuid11glMlfAIJTVLjBg02wxEc1SbeE9qQYxvzrJof4WoA7j3/sQKHIovu68r9yQrTcCtfHvQ2PA7DQaQfT/fAx74cWsdmtf+ZPM3vnWurrcUKNkHhcQOhsH34+nRdIIgsjZKsd6dLqRuuPuHWnNXoe6ihyZKPaApQwfW57aaVH5SogIa4ti07LK/nF/j80DoNVIqPwIPBiPx3wtrHdvKV4za3mpEKO40ain6zC9IqPWzAgMBAAECggEASDYb/HCr0Gc2ZoTR6epTbhcx7ox/tsL02hnhLp9sLEenjLrjOcwmWwDwhl7wzut4PkF+xTR3mgg67LPrzzDvntCEJf8EwaOL6a4dovlVLgJ1waZVR1nFpXeisPAyP1EXIezj7ivbRWOie8iPVDeeTPi2dMCa7DEEIaz+71gvVLxfBtLz7VdFNVdbNXbtXB4ivEHmEg0XuQ4MuUlcCAop7pokc/djRDk/oC8MfjxI4X73TwapZUyh5h6Ln0o1X/2OHFcYqW8DeLkfh918/wXbPiZa7QVyzR8RDXEJVJbOXNDCgA7lpwGqHDYVS8HPl51HB2zMnR7kmSe5vUyHtmn1UQKBgQDzgDDwxb50FdO7pNh571YH+ErWdvrVlUJmTcouXghGR7OwY0BUaAyjWDDW4QbMZ0v/NuUzDGUGWvu0JiAnOPLfcEY5YyKqknIdwJBYPY47gHju322GiNkoZJu85XZzOYv5FoQGGkWN7E8bVXkon8fezTWebdGxeKFvnKUm9swzqwKBgQCdecRg4ijg881Bxi85DHwaYExquoxB2jlcZKJb9xdTVvZFvK99Dhip1IffskSB6QLWx1PwVQwY59gh/OUuy41gUeJgcura8ziHGTnDVQu66KPihEXZfw47XBAt4gWsDTmxOeX2Y/DkeLr1T94OEsoYE94HmB4AzHC4DvCVUh2+GQKBgQCLnrNxO1FrKqDPdUQTFqLTyxDOTEajdQQvuOb3Ez/XXIGx4BcgztCAUK8gZsMJLSmsWwOs86xxqnWs5DeHheXtLGl3ulpER9hbKvEZR6Joh8/P2BjrDUjHGnkaJNB4XUTfPIPTI/lB2X+6gpYILyXhoPTftMSJ6EtYvg8MenK4JQKBgCsS0XpGojPVvAEPun76QT/ds0lGOXMRw7rX8+j/zyuGj9pHYCDuqCRb88ZmNoLqP1KMNxN3z9VIJUA2smF4X/VGsIr9I+w7tuyNI9Wf/5NiauFcmNaDAFuQNQS33CFRhMRLN/GLKKr1sv3CmNR0oz6uwH6HRz2krfhKbdgKHASRAoGBANEValX+C0/yXdSeYzGe0lWPEfyn5k5/rfVuc8AKdjTJZ7PlM0yY4FzppAl88WtXH0MkngMYZ3EaGAjaJm5V7S1mbvEZuRDX9nezbalr88sdwYXpHO4XTGYXDpro54wXbmf3tq7TOvUt2HPnPB0lNva7g7T8CTab6Wi7Kyi5NaDa";

    /**
     * 支付宝公钥,
     */
    private String publicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvDczFCupALOsbjRBpH9rar+oAhzHF0IFgGkrQDiKV42UvQNAi0mUtPNax90L8vrSpyCd/jKIm4CfyNir+NJz23mSdrHCyG0G+CEsgUMz+gsHAP+sylmNrn+KXJdndC7eoGHfY6mstUpB9kPuCFPgqlFDAnviTQMAnnUMZuHzxkjxhnTPe/CuowIH6mZ2qDrQfPH4WuGabN2QnkApb57hM6NC8zCkQpCl8C1CBlyovJh5ZwZQepkiADPijhLGeOOBpvta1IHb+dr7/YwjMgF5cu6WdYEYOiWnlyQm0jVtgRcszLc1UAp+UjSvwaIabT0Msn9AktQx1/G+Rjtf2vJB4wIDAQAB";

    /**
     * 服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = "http://localhost:9000/pay-api/pay/payNotify";

    /**
     * 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String returnUrl = "http://localhost:8080/PayNotify";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "utf-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * 支付宝日志路径
     */
    private String logPath = "F:\\AlipayLogs";
}
